
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="{:url('type/index')}">首页</a>
            </li>

            <li>
                <a href="#">栏目管理</a>
            </li>
            <li class="active">栏目分类</li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <div class="page-header">
            <h1>
                会员管理
                <small>
                    <i class="icon-double-angle-right"></i>
                    会员列表
                </small>
            </h1>
        </div><!-- /.page-header -->

        <div class="row">
            <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th class="center">
                                        <label>
                                            <input type="checkbox" class="ace" />
                                            <span class="lbl"></span>
                                        </label>
                                    </th>
                                    <th>Id</th>
                                    <th>会员头像</th>
                                    <th>会员名称</th>
                                    <th>会员性别</th>
                                    <th>注册时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                {foreach name="list" item="vo"}
                                <tr>
                                    <td class="center">
                                        <label>
                                            <input type="checkbox" class="ace" />
                                            <span class="lbl"></span>
                                        </label>
                                    </td>
                                    <td>
                                        <a href="#">{$vo.id}</a>
                                    </td>
                                    <td>
                                        {if condition="$vo.pic eq ''"}
                                        <img src="__PUBLIC__upload/houtai.png" width="50px" />
                                        {else /}
                                        <img src="{$vo.pic}" width="50px" />
                                        {/if}
                                    </td>
                                    <td>{:base64_decode($vo['nickname'])}</td>
                                    <td>
                                       {if condition="$vo.sex eq 0"}未知{elseif condition="$vo.sex eq 1"} 男{else /} 女{/if}
                                    </td>
                                    <td>{:date("Y-m-d H:i:s",$vo['addtime'])} </td>
                                    <td>
                                        <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                            <!--<button class="btn btn-xs btn-info" onclick="editTable(this,'{$vo.id}')">
                                                <i class="icon-edit bigger-120"></i>
                                            </button>-->

                                            <button class="btn btn-xs btn-danger" onclick="deleteTable(this,'{$vo.id}')">
                                                <i class="icon-trash bigger-120"></i>
                                            </button>

                                        </div>

                                        <div class="visible-xs visible-sm hidden-md hidden-lg">
                                            <div class="inline position-relative">
                                                <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
                                                    <i class="icon-cog icon-only bigger-110"></i>
                                                </button>

                                                <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                    <li>
                                                        <a href="{:url('member/index')}" class="tooltip-info" data-rel="tooltip" title="View">
																				<span class="blue">
																					<i class="icon-zoom-in bigger-120"></i>
																				</span>
                                                        </a>
                                                    </li>

                                                    <li>
                                                        <a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
																				<span class="green">
																					<i class="icon-edit bigger-120"></i>
																				</span>
                                                        </a>
                                                    </li>

                                                    <li>
                                                        <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
																				<span class="red">
																					<i class="icon-trash bigger-120"></i>
																				</span>
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                {/foreach}
                                <script>
                                    function editTable(obj,id){
                                        location.href="{:url('member/update')}?id="+id;
                                    }
                                    function deleteTable(obj,id){
                                        location.href="{:url('admin/delete')}?id="+id;
                                    }
                                </script>

                                </tbody>
                            </table>
                        </div><!-- /.table-responsive -->
                    </div><!-- /span -->
                </div><!-- /row -->

                <div>
                    {$list->render();}
                </div>

            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div><!-- /.main-content -->
<script>
    function changeValue(obj,id){
        var url = "{:url('banner/ajaxChange')}";
        var val = $(obj).attr('sx');
        if (val == 1) {
            $.post(url, {sx: val, id: id});
            $(obj).attr('sx', '0');

        } else {
            $.post(url, {sx: val, id: id});
            $(obj).attr('sx', '1');
        }
    }
</script>
<script>
    function urlTo(){
        location.href="{:url('admin/create')}";
    }
</script>

